package org.itboys.core.entity.mongo;

import lombok.Data;
import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：zzq
 * 时间：2018/10/15
 * 描述：购物车
 */
@Data
@Entity(value = "SundayCart", noClassnameStored = true)
public class SundayCart extends BaseMongoEntity {
    private Long memberId;
    private Long sceneId;
    private Double scenePrice;//加入购物车场景价格
    private Integer num;//数量
    private Integer cartType;//1，购物车，2，立即购买 3，赠送

    private Long orderId;//订单id
    private Integer status;//0 未生成订单  1  已生成订单

    public SundayCart() {
    }

    public SundayCart(Long memberId, Long sceneId, Integer num, Integer cartType,Double scenePrice,Integer status) {
        this.memberId = memberId;
        this.sceneId = sceneId;
        this.num = num;
        this.cartType = cartType;
        this.scenePrice=scenePrice;
        this.status=status;
    }
}
